//
//  NetworkCableView.m
//  QuanNengSaoMiaoZhuShou
//
//  Created by 向祖华 on 16/3/11.
//  Copyright © 2016年 于博文. All rights reserved.
//

#import "NetworkCableView.h"

@implementation NetworkCableView

-(void)drawRect:(CGRect)rect{
    //第一条横线
    UIBezierPath * path1 = [UIBezierPath bezierPath];
    [path1 moveToPoint:CGPointMake(0, (kSCreamHeight-110)/3)];
    [path1 addLineToPoint:CGPointMake(self.frame.size.width,(kSCreamHeight-110)/3)];
    [[UIColor whiteColor] setStroke];
    [path1 stroke];
    //第二条横线
    UIBezierPath * path2 = [UIBezierPath bezierPath];
    [path2 moveToPoint:CGPointMake(0, (kSCreamHeight-110)*2/3)];
    [path2 addLineToPoint:CGPointMake(self.frame.size.width,(kSCreamHeight-110)*2/3)];
    [[UIColor whiteColor] setStroke];
    [path2 stroke];
    //第一条竖线
    UIBezierPath * path3 = [UIBezierPath bezierPath];
    [path3 moveToPoint:CGPointMake((kSCreamWidth/3), 0)];
    [path3 addLineToPoint:CGPointMake(kSCreamWidth/3,self.frame.size.height)];
    [[UIColor whiteColor] setStroke];
    [path3 stroke];
    //第二条竖线
    UIBezierPath * path4 = [UIBezierPath bezierPath];
    [path4 moveToPoint:CGPointMake((kSCreamWidth*2/3), 0)];
    [path4 addLineToPoint:CGPointMake(kSCreamWidth*2/3,self.frame.size.height)];
    [[UIColor whiteColor] setStroke];
    [path4 stroke];
}

@end
